package com.dingding.service;

import com.dingding.common.ServerResponse;
import com.dingding.vo.CartVo;

/**
 * Created by 张柏桦 on 2017/8/19.
 */
public interface ICartService {

    ServerResponse<CartVo> add(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> update(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> deleteProduct (Integer userId,String productIds);

    ServerResponse<CartVo> selectOrUnSelect (Integer userId,Integer checked ,Integer productId);

    ServerResponse<CartVo> list (Integer userId);

    ServerResponse<Integer> getProductTotalCount(Integer userId);

    ServerResponse<Integer> getProductCount(Integer userId);
}
